package com.banksoft.admin.dao;

import com.banksoft.admin.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created by vanjoger on 2016/12/28.
 */
@Repository
public interface UserDao {
    User findByOpenId(@Param("openId") String openId);

    List<User> findByAccount(@Param("account") String account);

    List<User> listByName(@Param("name") String name);

    List<User> listByRecommendId(@Param("id") String id);

    List<User> list(Map map);

    List<User> listUserByCity(@Param("userLevel") String userLevel, @Param("province") String province, @Param("city") String city, @Param("area") String area);

    List<User> listPartnerUser();

    List<User> queryPage(Map map);

    Integer countPage(Map map);

    List<User> listAll();
}
